package com.xxx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName
@ApiModel("图书")
public class Books {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("name")
    private String bookName;
    @ApiModelProperty("简介")
    private String introduction;
    @ApiModelProperty("作者")
    private String author;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("菜单ID")
    private Integer menuId;
    @ApiModelProperty("菜单名称")
    private String menuName;
    @ApiModelProperty("正文")
    private String text;
}
